package com.example.tvidemo.mapper;

import com.example.tvidemo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    public List<User> findAll();

    public User findByUserName(@Param("username") String username);

    public void addUser(User user);

    public User findByUserId(@Param("id") String id);

    public void updateUser(User user);

    public void deleteUser(@Param("id") String id);
}
